package com.yangye.springclouddemonacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yangye
 * @date 2019/10/31 0031
 */
@RestController
@RefreshScope
public class TestController {

	@Value("${yang.son}")
	private String son;

	@GetMapping("/test")
	String test() {
		return son;
	}
}
